package com.itheima.service;

import com.itheima.domain.Setmeal;
import com.itheima.result.PageResult;
import com.itheima.result.QueryPageBean;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Transactional(readOnly = true)
public interface SetmealService {
    @Transactional(readOnly = false)
    public void add(Setmeal setmeal, Integer[] checkgroupIds);

    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    Setmeal findById(Integer id);

    List<Integer> findCheckGroupIdsBySetmealId(Integer id);
    @Transactional(readOnly = false)
    void edit(Setmeal setmeal, Integer[] checkGroupIds, String setmealUrl);
    @Transactional(readOnly = false)
    void delete(Setmeal setmeal);

    List<Setmeal> findAll();

    List<Map<String, Object>> findSetmealCount();
}
